package com.example.w.dao;

import com.example.w.common.pojo.Table;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TableDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Table record);

    int insertSelective(Table record);

    int insertSelective(Map<String, Integer> record);

    Table selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Table record);

    int updateByPrimaryKey(Table record);

    List<Table> selectAll();

    Table selectByTableNumber(int tableNumber);
}